//CHECKSTYLE:OFF

package com.ractoc.opengamefinder.server.translators;

/**
 * Class to translate between two beans.
 * @author Mark Schrijver
 * @version 1.0
 */
public final class TranslateAccountVOToAccountDAO implements com.ractoc.opengamefinder.server.translators.Translator {

    /**
     * Constructor.
     */
    public TranslateAccountVOToAccountDAO() {
    }

    /**
     * Translation method. Translates com.ractoc.opengamefinder.api.vo.AccountVO
     * into com.ractoc.opengamefinder.dao.AccountDAO.
     * @param beanInParam bean to translate.
     * @return translated parameter.
     */
    public Object translate(final Object beanInParam) {
        final com.ractoc.opengamefinder.api.vo.AccountVO beanIn =
                (com.ractoc.opengamefinder.api.vo.AccountVO) beanInParam;
        final com.ractoc.opengamefinder.dao.AccountDAO beanOut =
                new com.ractoc.opengamefinder.dao.AccountDAO();
        beanOut.setName(beanIn.getName());
        beanOut.setId(beanIn.getId());
        return beanOut;
    }

//====Missing in com.ractoc.opengamefinder.dao.AccountDAO
//setVersion has no getter in com.ractoc.opengamefinder.api.vo.AccountVO
//setPassword has no getter in com.ractoc.opengamefinder.api.vo.AccountVO
//setAvatar has no getter in com.ractoc.opengamefinder.api.vo.AccountVO
//

//====Missing in com.ractoc.opengamefinder.api.vo.AccountVO
//getAvatar has no setter in com.ractoc.opengamefinder.dao.AccountDAO
//getClass has no setter in com.ractoc.opengamefinder.dao.AccountDAO
//

}
//CHECKSTYLE:ON

